#ifndef __BM_FSM_H__
#define __BM_FSM_H__
#include "timer.h"
#include "gpio.h"

void bm_fsm_init(void);
enum
{
	BM_NET_EVENT_REST,
	BM_NET_EVENT_INIT_START,
	BM_NET_EVENT_INIT_FINISH,
	BM_NET_EVENT_LOGIN_START,
	BM_NET_EVENT_LOGIN_FINISH,
	
	BM_GNSS_RECV_PACKET,
	
	BM_BLE_RECV_PACKET,
	
	BM_EVENT_BIKE_REC_PACKET,
	
	BM_EVENT_BLE_CMD_SET_DEFEND,
	BM_EVENT_BLE_CMD_GET_STATUS,
	BM_EVENT_BLE_CMD_SET_SERVER,
	BM_EVENT_BLE_CMD_SET_SADDLE,
	BM_EVENT_BLE_CMD_BACKWHEEL,
	BM_EVENT_BLE_CMD_REBOOT,
	
	BM_EVENT_BIKE_CM_STATR,
};

#endif
